import request from '@/utils/request_zc'

export function getSaleReturnList ({
  returnNo,
  deliveryNo,
  contractNo,
  customerName,
  returnStartDate,
  returnEndDate,
  deliveryStatus,
  page,
  limit, }) {
  return request({
    url: '/sales/return/list',
    method: 'get',
    params: {
      returnNo,
      deliveryNo,
      contractNo,
      customerName,
      returnStartDate,
      returnEndDate,
      deliveryStatus,
      page,
      limit
    }
  })
}

export function editSaleReturn (data) {
  return request({
    url: '/sales/return/edit',
    method: 'post',
    data
  })
}

export function addSaleReturn (data) {
  return request({
    url: '/sales/return/add',
    method: 'post',
    data
  })
}

export function delSaleReturn ({ ids }) {
  return request({
    url: '/sales/return/del',
    method: 'post',
    data: {
      ids
    }
  })
}
